import java.util.Arrays;
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner se=new Scanner(System.in);
int a[]=new int [3];
for(int i=0;i<a.length;i++){
    a[i]=se.nextInt();
}
Arrays.sort(a);
for(int i=0;i<a.length;i++){
    System.out.println(a[i]);
}
 System.out.print(Arrays.toString(a));

        }
    }
